#ifndef CSVLINE_H
#define CSVLINE_H

#include <qstring.h>
#include "..\src\corelib\tools\qstringlist.h"

enum COLUMN {
	TIME    =   0,
	SRC     =   1,
	HOST    =   2,
	USR     =   3,
	ACTION  =   4,
	TARGET  =   5,
	MISC    =   6,
	TAMPER  =   7,
	TAG     =   8

};

class CSVLine
{
public:
	CSVLine(QString line="",QChar sep=',',QChar strQua='\"');
	CSVLine(QStringList slist) {
		lst = slist;
	}
	~CSVLine();
	QString operator[](int pos);
	QString toString(char sep=',',char strqua = '\"');
private:
	QStringList lst;
	bool err;
	
};

#endif // CSVLINE_H
